package com.example.demo.Gmail.service;

import com.google.api.services.gmail.Gmail;
import com.google.api.services.gmail.model.Message;

import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.List;

public interface GmailService {
     Message sendMessage(Gmail service, String userId, MimeMessage emailContent) throws MessagingException, IOException;

     List<Message> listMessagesWithLabels(Gmail service, String userId, List<String> labelIds) throws IOException, GeneralSecurityException;

     void deleteOne(Gmail service, String userId, String Id) throws IOException;

     void batchDelete(Gmail service, String userId, String[] Ids) throws IOException;



}
